//
//  MHMyCompanyTableRootCell.m
//  M-Saler
//
//  Created by Teresa on 2020/5/21.
//  Copyright © 2020 Teresa. All rights reserved.
//

#import "MHMyCompanyTableRootCell.h"
#import <SDWebImage/SDWebImage.h>

@implementation MHMyCompanyTableRootCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    return self;
}

-(void)setModel:(MHMyCompanyModel *)model{
    _model = model;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.logo]
                      placeholderImage:[UIImage imageNamed:@"cell_icon_default"]];
    self.textLabel.text = model.shop_name;
}

@end
